<table width="960px">
    <tr bgcolor="#6495ed" style="color: white">
        <td>
            id
        </td>
        <td>
            nick
        </td>
        <td>
            email
        </td>
        <td>
            password
        </td>
        <td>
            status
        </td>
        <td>

        </td>
        <td>

        </td>
    </tr>
<?php
    $colorCounter = 0;
    foreach($this->users as $user)
    {
        ?>
        <tr bgcolor="<?=((($colorCounter % 2) == 0) ? "#CCC" : "transparent")?>">
            <td>
                <?=$user['id']?>
            </td>
            <td>
                <?=$user['nick']?>
            </td>
            <td>
                <?=$user['email']?>
            </td>
            <td>
                <?=$user['password']?>
            </td>
            <td>
                <?=($user['status']==0) ? "user" : "admin"?>
            </td>
            <td>
                <a href="/admin?view=<?=$user['id']?>">View</a>
            </td>
            <td>
                <a href="/admin?delete=<?=$user['id']?>">Delete</a>
            </td>
        </tr>
    <?
        $colorCounter++;
    }
?>
</table>